package com.hospital.insurancedip.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * <p>
 * ÃÅÕïÒ½Éú´¦·½Ã÷Ï¸¼ÇÂ¼
 * </p>
 *
 * @author lvyao
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("OUTP_DOCTOR_PRESC_ITEMS")
public class OutpDoctorPrescItems implements Serializable {

    private static final long serialVersionUID=1L;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("VISIT_DATE")
    private Timestamp visitDate;

    @TableField("VISIT_NO")
    private Integer visitNo;

    @TableField("ITEM_NO")
    private Integer itemNo;

    @TableField("ITEM_SUB_NO")
    private Integer itemSubNo;

    @TableField("PHAM_CLASS")
    private String itemClass;

    @TableField(exist = false)
    private String itemClassName;

    @TableField("PHAM_NAME")
    private String phamName;

    @TableField("PHAM_CODE")
    private String phamCode;

    @TableField("PHAM_SPEC")
    private String phamSpec;

    @TableField("FIRM_ID")
    private String firmId;

    @TableField("PER_AMOUNT")
    private BigDecimal perAmount;

    @TableField("P_UNITS")
    private String pUnits;

    @TableField("FREQUENCY")
    private String frequency;

    @TableField("DAYS")
    private Integer days;

    @TableField("AMOUNT")
    private BigDecimal amount;

    @TableField("REPETITION")
    private Integer repetition;

    @TableField("UNITS")
    private String units;

    @TableField("NUMBERS")
    private Integer numbers;

    @TableField("N_UNITS")
    private String nUnits;

    @TableField("NUMBER_PER_PACKAGE")
    private BigDecimal numberPerPackage;

    @TableField("ADMINISTRATION")
    private String administration;

    @TableField(exist = false)
    private String administrationCode;

    @TableField("PERFORMED_BY")
    private String performedBy;

    @TableField(exist = false)
    private String performedByName;

    @TableField("COSTS")
    private BigDecimal costs;

    @TableField("PAYMENTS")
    private BigDecimal charges;

    @TableField("NOTES")
    private String notes;

    @TableField("DECOCTING_METHOD")
    private String decoctingMethod;

    @TableField(exist = false)
    private String drugForm;

    @TableField(exist = false)
    private String drugFormCode;

    @TableField(exist = false)
    private String nationalInsuranceCode;

}
